

from urllib.request import urlopen

url = "https://www.zhihu.com"
resp = urlopen(url)
print(resp.read())

# with open("mybaidu.html",mode="w",encoding="utf-8") as f:
#     f.write(resp.read().decode("utf-8"))
# print("over!")